<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="<?php echo (PUBLIC_COMMON); ?>/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="<?php echo (PUBLIC_COMMON); ?>/bootstrap/css/bootstrap.css">
    <script src="<?php echo (PUBLIC_COMMON); ?>/bootstrap/js/bootstrap.js"></script>
<body>

<link rel="stylesheet" href="<?php echo (ADMIN_CSS); ?>/user-lst.css">
<script src="<?php echo (ADMIN_JS); ?>/user-lst.js"></script>
<div class="col-sm-12 col-md-12 col-lg-12 " style="margin-top: 10px;" >
    <a href="/gangao/index.php/Admin/User/add"><h4>添加用户 <span class="glyphicon glyphicon-plus"></span></h4></a>
</div>
<div class="col-sm-12 col-md-12 col-lg-12 userall" >
<table border="1" bordercolor="#a0c6e5" style="border-collapse:collapse;" class="tab1" >
    <tr>
        <th>编号</th>
        <th>帐号</th>
        <th>称呼</th>
        <th>类型</th>
        <th>操作</th>
    </tr>
    <?php $flag=0;?>
    <?php if(is_array($users["list"])): foreach($users["list"] as $key=>$val): $flag++;?>
        <tr>
            <td><?php echo $flag;?></td>
            <td><?php echo ($val["account"]); ?></td>
            <td><?php echo ($val["realname"]); ?></td>
            <td>
                <?php if($val['admin']=='common'){?>
                    管理员
                <?php }else{ ?>
                普通用户
                <?php } ?>
            </td>
            <td><a href="">编辑</a>  <a href=""> 删除</a></td>
        </tr><?php endforeach; endif; ?>
</table>
<!-- 分页开始 -->
<table class="tab2" cellspacing="0" style="margin: auto;width: 300px;margin-top: 20px;">
    <tr>
        <td id="showpg" align="center" nowrap="true" style="width: 300px;">
            <?php echo ($users["show"]); ?>
        </td>
    </tr>
</table>
</div>
<!-- 分页结束 -->

</body>
</html>